#pragma once
#include "RootScene.h"
#include <map>
#include <string>

class SceneManager
{
private:
	std::map<std::string, RootScene *> sceneMap;
	RootScene * nowScene;
	std::string nextName;
public:
	SceneManager(void);
	virtual ~SceneManager(void);

	void SelectScene(std::string name){nextName = name;}
	RootScene * GetNowScene(){return nowScene;}
	RootScene * GetScene(std::string s){return sceneMap[s];}
	bool checkNextScene(){return (std::string("") != nextName);}
	void changeScene();
};